//
//  HJSearchView.swift
//  HJSinaWeibo
//
//  Created by a-375 on 2017/9/6.
//  Copyright © 2017年 夏航军. All rights reserved.
//

import UIKit

@IBDesignable class HJSearchView: UIButton {
    
    
    class func loadSearchView() -> HJSearchView {
        let nib = UINib(nibName: "HJSearchView", bundle: nil)
        return nib.instantiate(withOwner: self, options: nil).first as! HJSearchView
        
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        self.bounds.size.height = 35;
        self.bounds.size.width = UIScreen.main.bounds.width
        self.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0)
        self.titleEdgeInsets = UIEdgeInsetsMake(0, 15, 0, 0)
    }

}
